package org.swan.web.permission.service;

import org.swan.web.permission.bean.PermissionBean;

import java.util.List;
import java.util.Optional;

public interface PermissionService {

    Optional<PermissionBean> getPermissionById(long id);

    long addPermission(PermissionBean PermissionBean);

    PermissionBean updatePermission(PermissionBean PermissionBean);

    PermissionBean deletePermissionById(long PermissionId);

    List<PermissionBean> list(int offset, int rows);
}
